package com.huawei.appgallery.packagemanager.impl.control;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import androidx.annotation.Nullable;
import o.cnu;
import o.cor;
import o.cpa;

public class InstallService extends Service {
    private final IBinder ˎ = new b(this);

    public class b extends Binder {
        final /* synthetic */ InstallService ˏ;

        public b(InstallService installService) {
            this.ˏ = installService;
        }

        public InstallService ˋ() {
            return this.ˏ;
        }
    }

    public void onCreate() {
        super.onCreate();
        cnu.ˏ.ˋ("InstallService", " onCreate");
        cor.ˎ(getApplicationContext()).ॱ();
        if (cpa.ˊ().ॱ() == 0) {
            cnu.ˏ.ˋ("InstallService", "service Illegal startup,stop now");
            stopSelf();
        }
    }

    @Nullable
    public IBinder onBind(Intent intent) {
        return this.ˎ;
    }

    public void onDestroy() {
        super.onDestroy();
        cor.ˎ(getApplicationContext()).ˏ();
        cnu.ˏ.ˋ("InstallService", "onDestroy");
    }
}
